<script>
export default {
    name:"DC",
    data(){
        return{
            names:["iwen",'ime']
        }
    },
    // render函数里是jsx语法
    render(){
        var view = this.$slots.default
        return(
            <div>
                DComponent:
                <ul>
                    {
                        this.names.map((element,index) => {
                            return <li>{ element }</li>
                        })
                    }
                </ul>
                { view }
            </div>
        )
    }
}
</script>
<style scoped>

</style>
